using SqlSugar;
using System.ComponentModel.DataAnnotations;
namespace Jst.Domain
{
    [SugarTable("OperateLog", TableDescription = "日志记录")]
    public partial class OperateLog
    {
        /// <summary>
        /// Id
        /// </summary>
        [Display(Name = "Id")]
        [SugarColumn(ColumnDescription = "Id", IsNullable = false, IsPrimaryKey = true, IsIdentity = false)]
        [Required(ErrorMessage = "请输入{0}")]
        public long Id { get; set; }

        /// <summary>
        /// 获取或设置是否禁用，逻辑上的删除，非物理删除
        /// </summary>
        [Display(Name = "获取或设置是否禁用，逻辑上的删除，非物理删除")]
        [SugarColumn(ColumnDescription = "获取或设置是否禁用，逻辑上的删除，非物理删除", IsNullable = true, IsPrimaryKey = false, IsIdentity = false)]
        [Required(ErrorMessage = "请输入{0}")]
        public bool IsDeleted { get; set; }

        /// <summary>
        /// 区域名
        /// </summary>
        [Display(Name = "区域名")]
        [SugarColumn(ColumnDescription = "区域名", IsNullable = true, IsPrimaryKey = false, IsIdentity = false)]
        [StringLength(2000, ErrorMessage = "【{0}】不能超过{1}字符长度")]
        public string Area { get; set; }

        /// <summary>
        /// 区域控制器名
        /// </summary>
        [Display(Name = "区域控制器名")]
        [SugarColumn(ColumnDescription = "区域控制器名", IsNullable = true, IsPrimaryKey = false, IsIdentity = false)]
        [StringLength(2000, ErrorMessage = "【{0}】不能超过{1}字符长度")]
        public string Controller { get; set; }

        /// <summary>
        /// Action名称
        /// </summary>
        [Display(Name = "Action名称")]
        [SugarColumn(ColumnDescription = "Action名称", IsNullable = true, IsPrimaryKey = false, IsIdentity = false)]
        [StringLength(2000, ErrorMessage = "【{0}】不能超过{1}字符长度")]
        public string Action { get; set; }

        /// <summary>
        /// IP地址
        /// </summary>
        [Display(Name = "IP地址")]
        [SugarColumn(ColumnDescription = "IP地址", IsNullable = true, IsPrimaryKey = false, IsIdentity = false)]
        [StringLength(2000, ErrorMessage = "【{0}】不能超过{1}字符长度")]
        public string IPAddress { get; set; }

        /// <summary>
        /// 描述
        /// </summary>
        [Display(Name = "描述")]
        [SugarColumn(ColumnDescription = "描述", IsNullable = true, IsPrimaryKey = false, IsIdentity = false)]
        [StringLength(2000, ErrorMessage = "【{0}】不能超过{1}字符长度")]
        public string Description { get; set; }

        /// <summary>
        /// 登录时间
        /// </summary>
        [Display(Name = "登录时间")]
        [SugarColumn(ColumnDescription = "登录时间", IsNullable = true, IsPrimaryKey = false, IsIdentity = false)]
        [Required(ErrorMessage = "请输入{0}")]
        public DateTime LogTime { get; set; }

        /// <summary>
        /// 登录名称
        /// </summary>
        [Display(Name = "登录名称")]
        [SugarColumn(ColumnDescription = "登录名称", IsNullable = true, IsPrimaryKey = false, IsIdentity = false)]
        [StringLength(2000, ErrorMessage = "【{0}】不能超过{1}字符长度")]
        public string LoginName { get; set; }

        /// <summary>
        /// 用户ID
        /// </summary>
        [Display(Name = "用户ID")]
        [SugarColumn(ColumnDescription = "用户ID", IsNullable = false, IsPrimaryKey = false, IsIdentity = false)]
        [Required(ErrorMessage = "请输入{0}")]
        public int UserId { get; set; }

    }
}
